package log;

public class Loger {
	CSVWorker csv;
	DBWorker db;
	
	public Loger() {
		super();
		this.csv = new CSVWorker();
//		this.db = new DBWorker();
	}
	
	public Loger(String db, String login, String password) {
		super();
		this.csv = new CSVWorker();
//		this.db = new DBWorker(db, login, password);
	}
	
	public void log(int id, String file, boolean result) {
		if (this.csv != null) 
			csv.log(id, file, result);
//		if (this.db != null)
//			this.db.log(id, file, result);
	}
}
